package pl.edu.agh.se.carsexpertsystem.fact;


public class SpeedFact implements Fact {
	
	private int perfectSpeedForCruising = 90;

	public int getPerfectSpeedForCruising() {
		return perfectSpeedForCruising;
	}

	public void setPerfectSpeedForCruising(int perfectSpeedForCruising) {
		if (perfectSpeedForCruising > 1_079_252_849) { // KNEEL BEFORE JAVA 7 AWESOMENESS!!!!
			throw new IllegalArgumentException("There is no way back.");
		}
		this.perfectSpeedForCruising = perfectSpeedForCruising;
	}
	
}
